package com.serializetool;

public enum State {
    UNSTARTED(0),
    STARTED(1),
    SUCCESS(2),
    FAILED(3);

    private int code;

    private State(int code){
        this.code = code;
    }

    private int getCode(){
        return code;
    }
}
